package com.heima.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.pojos.ApUserSearch;
import com.heima.search.mapper.ApUserSearchMapper;

@SuppressWarnings("ALL")
/**
 * @Description :
 * @author     :LD
 */
public interface ApUserSearchService extends IService<ApUserSearch>{
    /**
     * 保存用户搜索记录
     * @param entryId
     * @param searchWords
     */
    public void insert(Integer entryId,String searchWords);

    /**
     查询搜索历史
     @param userSearchDto
     @return
     */
    ResponseResult findUserSearch(UserSearchDto userSearchDto);

    /**
     删除搜索历史
     @param userSearchDto
     @return
     */
    ResponseResult delUserSearch(UserSearchDto userSearchDto);
}
